package com.example.software.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
@TableName("faq")
public class FAQ {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String question;
    private String answer;
    
    @TableField("sort_order")
    @JsonProperty("sort_order")  // 新增JSON字段映射
    private Integer sortOrder;
    
    @TableField("created_at")
    @JsonProperty("created_at")
    private LocalDateTime createdAt;
    
    @TableField("updated_at")
    @JsonProperty("updated_at")
    private LocalDateTime updatedAt;
}